package com.crishne.anwo.utill;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @ClassName: PaginationUtil
 * @Description: 分页
 * @author zhanglx
 * @date 2016-3-21 上午10:37:59
 * @version 1.0
 */
public class PaginationUtil<T>
{
    private Integer currentPage;//当前页

    private Integer pageSize;//每页显示多少条

    private Integer totalCount;//总条数
    
    private Integer totalPage;//总页数
    
    public Integer getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(Integer totalPage) {
		this.totalPage = totalPage;
	}

	private String stOrderBy;//排序

    private Map<String, Object> searchCondition = new HashMap<String, Object>();//查询条件

    private List<T> dataList = new ArrayList<T>();//返回的列表数据

    public PaginationUtil()
    {
    }

    public PaginationUtil(Integer currentPage, Integer pageSize,
            Integer totalCount, Map<String, Object> searchCondition,
            List<T> dataList)
    {
        this.currentPage = currentPage;
        this.pageSize = pageSize;
        this.totalCount = totalCount;
        this.searchCondition = searchCondition;
        this.dataList = dataList;
    }

    public Integer getCurrentPage()
    {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage)
    {
        this.currentPage = currentPage;
    }

    public Integer getPageSize()
    {
        return pageSize;
    }

    public void setPageSize(Integer pageSize)
    {
        this.pageSize = pageSize;
    }
    
    

    public String getStOrderBy() {
		return stOrderBy;
	}

	public void setStOrderBy(String stOrderBy) {
		this.stOrderBy = stOrderBy;
	}

	public Integer getTotalCount()
    {
        return totalCount;
    }

    public void setTotalCount(Integer totalCount)
    {
        this.totalCount = totalCount;
    }

    public Map<String, Object> getSearchCondition()
    {
        return searchCondition;
    }

    public void setSearchCondition(Map<String, Object> searchCondition)
    {
        this.searchCondition = searchCondition;
    }

    public List<T> getDataList()
    {
        return dataList;
    }

    public void setDataList(List<T> dataList)
    {
        this.dataList = dataList;
    }
}
